const mongoose = require('mongoose')
const Todo = require('./lib/todo')

mongoose.connect('mongodb://127.0.0.1:27017/ExpressRouter').then()

module.exports = {
    TodoDB: mongoose.model('todolist', Todo)
}
